package com.jie.service;

import com.jie.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author jie
 * @date 2019/8/7 -11:16
 */
@FeignClient("hello-service")
public interface HelloService {

    @RequestMapping("/hello")
    String hello();

    @GetMapping("/hello1")
    String hello(@RequestParam("name") String name);

    @GetMapping("/hello3")
    User info(@RequestHeader("name") String name, @RequestHeader("age") Integer age);

}
